package com.example.tass.domain;

import cn.tass.exceptions.TAException;

public class MyVerifyRawsignExternalRequest extends MyBaseRequest{
    private String pubKeyInfo;
    private Integer pubKeyInfoType;
    private String algorithm;
    private String data;
    private Integer dataType;
    private String sign;
    private Integer signFormat;
    private String sm2UserID;
    private Integer rsaPadMode;
    private Integer verifyLevel;

    public MyVerifyRawsignExternalRequest() {
    }

    public String getPubKeyInfo() {
        return this.pubKeyInfo;
    }

    public void setPubKeyInfo(String pubKeyInfo) {
        this.pubKeyInfo = pubKeyInfo;
    }

    public Integer getPubKeyInfoType() {
        return this.pubKeyInfoType;
    }

    public void setPubKeyInfoType(Integer pubKeyInfoType) {
        this.pubKeyInfoType = pubKeyInfoType;
    }

    public String getAlgorithm() {
        return this.algorithm;
    }

    public void setAlgorithm(String algorithm) {
        this.algorithm = algorithm;
    }

    public String getData() {
        return this.data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Integer getDataType() {
        return this.dataType;
    }

    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }

    public String getSign() {
        return this.sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public Integer getSignFormat() {
        return this.signFormat;
    }

    public void setSignFormat(Integer signFormat) {
        this.signFormat = signFormat;
    }

    public String getSm2UserID() {
        return this.sm2UserID;
    }

    public void setSm2UserID(String sm2UserID) {
        this.sm2UserID = sm2UserID;
    }

    public Integer getRsaPadMode() {
        return this.rsaPadMode;
    }

    public void setRsaPadMode(Integer rsaPadMode) {
        this.rsaPadMode = rsaPadMode;
    }

    public Integer getVerifyLevel() {
        return this.verifyLevel;
    }

    public void setVerifyLevel(Integer verifyLevel) {
        this.verifyLevel = verifyLevel;
    }

    public void validate() throws TAException {
        this.checkParamIsEmpty(this.pubKeyInfo, "pubKeyInfo");
        this.checkParamIsEmpty(this.algorithm, "algorithm");
        this.checkParamIsEmpty(this.data, "data");
        this.checkParamIsEmpty(this.sign, "sign");
    }
}
